<html><head><title>ScaleMaterial</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ScaleMaterial()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>ScaleMaterial</b></font>(#Material, x, y [, Layer])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Scales the material. The parameters 'x' and 'y' are scale factors. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Material</i></td>
<td width="90%"> 
The material to use. 

</td></tr>
<tr><td><i>x, y</i></td>
<td> 
The scale factors (the current material size is multiplied by these values): <br>
- a value of 1.0 means that the size isn't changed <br>
- a value between 0.0 and 1.0 means that the material is scaled down (ie: a scale of 0.5 will be half the size) <br>
- a value above 1.0 means that the material is scaled up (ie: a scale of 2.0 will double the size) <br>

</td></tr>
<tr><td><i>Layer (optional)</i></td>
<td> 
The layer to scale. The first layer is zero. If this parameter is omitted, the layer zero is scaled. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Remarks</b></p><blockquote>

To get the current scale values, use <a href="getmaterialattribute.html">GetMaterialAttribute()</a>. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="getmaterialattribute.html">GetMaterialAttribute()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=rotatematerial.html>RotateMaterial()</a> - <a href=index.html>Material Index</a> - <a href=scrollmaterial.html>ScrollMaterial()</a> ->

</body></html>